package Vehicle1;

public class Car extends Vehicle {
	private String type;
	
	public Car(String brand,String type){
		super(brand);
		this.type = type;
	}
	
	public String getType(){
		return type;
	}

	public int calRent(int days){
		if("1".equals(type)){
			return days * 500;
		}else if("2".equals(type)){
			return 600 * days;
		}else{
			return 300* days;
		}
	}
}
